package com.googlecode.imanager.swing;

import java.awt.Color;

import javax.swing.JPanel;

import com.googlecode.imanager.client.Panel;
import com.googlecode.imanager.client.bridge.IPanel;
import com.googlecode.imanager.core.base.BridgeApplication;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class SwingPanel extends SwingContainer implements IPanel {

    public SwingPanel(BridgeApplication bridge, Panel source) {
        super(bridge, source);
        // TODO Auto-generated constructor stub
        target.setBackground(Color.WHITE);//new Color(0xC080F0));
    }

    @Override
    protected JPanel createTarget() {
        return new JPanel(null);
    }

    @Override
    public JPanel getTarget(){
        return (JPanel) target;
    }
    
    @Override
    public Panel getSource() {
        return (Panel) source;
    }

}
